var should = require('should');
var resourcesSupplementHandler = require('../../../app/servers/user/handler/resourcesSupplementHandler');
var roleModel = require('../../../app/models/roleModel');
var config = require('../../config');
var analyze = require('kc-analyze');
var configUtil = require('../../../app/util/configUtil');

suite('测试resourcesSupplementHandler', function () {
    setup(function (done) {
        var analyze_config = configUtil.load('analyze');
        var game_config = configUtil.load('game');
        analyze.initialize({
            host: analyze_config.host,
            server_id: game_config.server_id
        });
        done();
    });

    test('领取vip奖励', function (done) {
        var msg = {
            add_food: 15000000,
            add_gold: 200001
        };
        var session = {};
        session.uid = config.role_id;

        var resources_handler = new resourcesSupplementHandler();
        resources_handler.receiveResources(msg, session, function (err, res) {
            done();
            //console.log(err);
        });
    });
});
